<template>

  <view class="button">
    <el-button type="success" id="add-project" @click="addTodo" round>添加任务</el-button>
    <el-button type="danger" id="clear-project" @click="clearTodos" round>清空任务</el-button>
  </view>

</template>

<script>
export default {
  methods: {
    addTodo() {
      this.$emit('add');
    },
    clearTodos() {
      this.$emit('clear');
    }
  }
}
</script>
